package com.jimmy.ioc.junit;

import com.jimmy.ioc.annotation.BookService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

/**
 * @version 1.0
 * @ ClassName App
 * <p> TODO
 * @ author JIMMY
 * @ Date 2020/10/24 0024 下午 10:07
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"classpath:applicationContext-junit.xml"})
public class App {
    @Autowired
    private BookService bookService;
    @Test
    public void  test(){
        System.out.println("---------------------");
        bookService.save();
    }
}
